/**
 * @(#)AreaDto.java 1.0 2016年9月23日
 *
 * Copyright (c) 2016, YUNXI. All rights reserved.
 * YUNXI PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package com.project.entity.area;

import javax.persistence.Column;
import javax.persistence.Table;

import com.dtyunxi.dto.BaseDto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@Table(name="S_AREA")
@ApiModel(value="区域信息")
public class Area extends BaseDto{
	
	private static final long serialVersionUID = 1L;
	
	@ApiModelProperty(value="区域code")
	@Column
	private String code;//code
	
	@ApiModelProperty(value="区域名称")
	@Column(name = "name")
	private String name;//名称
	
	@ApiModelProperty(value="父级code")
	@Column(name = "parentcode")
	private String parentcode;//父级code
	
	@ApiModelProperty(value="状态（0:禁用;1:启用）")
	@Column
	private String status;// 状态（0:禁用;1:启用）
	
	@ApiModelProperty(value="级别")
	@Column
	private String level;//级别
	
	@ApiModelProperty(value="标识列(p:省,c:市,m:区)")
	@Column
	private String flag;//标识列(p:省,c:市,m:区)
	
	/**
	 * @return the code
	 */
	public String getCode() {
		return code;
	}
	/**
	 * @param code the code to set
	 */
	public void setCode(String code) {
		this.code = code;
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * @return the parentcode
	 */
	public String getParentcode() {
		return parentcode;
	}
	/**
	 * @param parentcode the parentcode to set
	 */
	public void setParentcode(String parentcode) {
		this.parentcode = parentcode;
	}
	/**
	 * @return the status
	 */
	public String getStatus() {
		return status;
	}
	/**
	 * @param status the status to set
	 */
	public void setStatus(String status) {
		this.status = status;
	}
	/**
	 * @return the level
	 */
	public String getLevel() {
		return level;
	}
	/**
	 * @param level the level to set
	 */
	public void setLevel(String level) {
		this.level = level;
	}
	/**
	 * @return the flag
	 */
	public String getFlag() {
		return flag;
	}
	/**
	 * @param flag the flag to set
	 */
	public void setFlag(String flag) {
		this.flag = flag;
	}
	
	
}
